/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package other;

import java.io.Serializable;

/**
 *
 * @author alessandro
 */
public class Costants implements Serializable {

    public static String PERSISTENCE_UNIT = "HeartsSDITeamPU";

    public final static String HOME = "home";
    public final static String HOME_URL="home.xhtml";
    public final static String LOGIN = "login";
    public final static String TABLE = "table";
    public final static String CHAT = "chat";
    public final static String REGISTER = "register";

    /*messaggi vari*/
    public final static String ERROR_USER_EXIST = "Sorry, your username already exists. Please choose another one.";
    public final static String ERROR_WRONG_PASSWORD_C = "Password confirmation is not the same of Password.";
    public final static String OK_REGISTER = "Registration success! Go to home and log in!";
    public final static String ERROR_PROBLEM_REGISTER = "Registration problem. Try again later";
    public final static String ERROR_NAME_BOT = "You can't use \"Bot\" in your name. Please choose another username.";

    /* PUNTI GIOCO */
    public final static int WINNER_POINTS = 4;
    public final static int LOSER_POINTS = -1;

    /*SEMI*/
    public final static String SEED[] = {"F", "Q", "P", "C"};
    public final static String SEED_F = SEED[0];
    public final static String SEED_Q = SEED[1];
    public final static String SEED_P = SEED[2];
    public final static String SEED_C = SEED[3];

    /*carte*/
    public final static int CARDS[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14};

    /*STATO CARTE*/
    public final static String IN_DECK = "in_deck";
    public final static String HOLD_BY_USER = "hold_by_user";
    public final static String ON_TABLE = "on_table";
    public final static String POINT = "point";

    public final static int POINTS_SHOOTING = 26;

    public final static int MAX_ROUND = 13;

    /*ajax*/
    public static final String PUSH_GROUP = "chatPage";
    public static final String PUSH_GROUP_LIST = "userList";
    public static final String PUSH_TABLE = "tableList";

    /*STATO UTENTE*/
    public static final int NULL = 5;
    public static final String WAITING = "waiting";
    public static final String CHATTING = "chatting";
    public static final String PLAYING = "playing";
    public static final String WATCHING = "watching";

    /*tavoli*/
    public static final int MAX_PLAYERS = 4;
    public final static String STARTED = "started";
    public final static String READY = "ready";

    /*avatars*/
    public final static String PNG =".png";
    public final static String ADDRESS_IMAGES = "./resources/images/";
    public final static String AVATAR_BOT = ADDRESS_IMAGES + "avatar/bot";
    public final static String AVATAR_PROF = ADDRESS_IMAGES + "avatar/prof";
    public final static String AVATAR_LEELA = ADDRESS_IMAGES + "avatar/leela";
    public final static String AVATAR_FRY = ADDRESS_IMAGES + "avatar/fry";
    public final static String AVATAR_PLAYER = ADDRESS_IMAGES + "avatar/player";
    public final static String AVATAR_NONE = ADDRESS_IMAGES + "/avatar/none.png";
    public final static String AVATAR_PLAYING = "_playing";

    /*STATO PLAYERS*/
    public static final String ADDRESS_EMPTY = ADDRESS_IMAGES + "empty.png";
    public final static String ADDRESS_WAITING = ADDRESS_IMAGES + "ready.png";


    /*url carte*/

    public final static String ADDRESS_CARD = ADDRESS_IMAGES + "cards/";

    public final static String ADDRESS_CARD_EMPTY = ADDRESS_CARD + "vuoto.png";

    public final static String ADDRESS_CARD_OTHERS= ADDRESS_CARD + "IB";


    public final static String CARDS_C[] = {ADDRESS_CARD + "C1", ADDRESS_CARD + "C2", ADDRESS_CARD + "C3", ADDRESS_CARD + "C4",
        ADDRESS_CARD + "C5", ADDRESS_CARD + "C6", ADDRESS_CARD + "C7", ADDRESS_CARD + "C8",
        ADDRESS_CARD + "C9", ADDRESS_CARD + "C10", ADDRESS_CARD+"C11", ADDRESS_CARD+"C12",
                                            ADDRESS_CARD+"C13"};

    public final static String CARDS_Q[] = {ADDRESS_CARD+"Q1",ADDRESS_CARD+"Q2",ADDRESS_CARD+"Q3", ADDRESS_CARD+"Q4",
                                            ADDRESS_CARD+"Q5", ADDRESS_CARD+"Q6", ADDRESS_CARD+"Q7", ADDRESS_CARD+"Q8",
                                            ADDRESS_CARD+"Q9", ADDRESS_CARD+"Q10", ADDRESS_CARD+"Q11", ADDRESS_CARD+"Q12",
                                            ADDRESS_CARD+"Q13"};

    public final static String CARDS_P[] = {ADDRESS_CARD+"P1",ADDRESS_CARD+"P2",ADDRESS_CARD+"P3", ADDRESS_CARD+"P4",
                                            ADDRESS_CARD+"P5", ADDRESS_CARD+"P6", ADDRESS_CARD+"P7", ADDRESS_CARD+"P8",
                                            ADDRESS_CARD+"P9", ADDRESS_CARD+"P10", ADDRESS_CARD+"P11", ADDRESS_CARD+"P12",
                                            ADDRESS_CARD+"P13"};

    public final static String CARDS_F[] = {ADDRESS_CARD+"F1",ADDRESS_CARD+"F2",ADDRESS_CARD+"F3", ADDRESS_CARD+"F4",
                                            ADDRESS_CARD+"F5", ADDRESS_CARD+"F6", ADDRESS_CARD+"F7", ADDRESS_CARD+"F8",
                                            ADDRESS_CARD+"F9", ADDRESS_CARD+"F10", ADDRESS_CARD+"F11", ADDRESS_CARD+"F12",
                                            ADDRESS_CARD+"F13"};

    public static final String BOTNAME = "Bot";
    public static final String NICK_EMPTY = "-";

    /* MESSAGGI TAVOLO */
    public static final String TABLE_WELCOME ="Welcome to the table";
    public static final String TABLE_NEW_PLAYER ="New player sit at table";
    public static final String TABLE_PLAYER_LEAVE ="A player just leave the table";
    public static final String TABLE_GAME_START ="The game will start in";
    public static final String TABLE_PLAYER_TURN="It's the turn of ";
    public static final int TABLE_TIME_STANDARD = 3000;
    public static final String TABLE_NEW_TURN = "The turn is over. Click on \"End Turn\"";
    public static final String TABLE_THE_WINNER_IS = "And the winner is... ";
    public static final String TABLE_THE_WINNER_ARE = "And the winners are... ";



}
